package org.bit.lesson06;

/**
 * 单例
 */
public class SingletonHungry {
    // 定义成员变量，使用static修饰保证全局唯一
    private static SingletonHungry instance = new SingletonHungry();

    // 构造方法私有化
    private SingletonHungry() {}

    public static SingletonHungry getInstance() {
        return instance;
    }

}
